﻿/*
* Filename: main.cpp
* Author: L.Y.
* Brief: SHA256算法测试
*/

#include <iostream>
#include <string>

#include "sha256.h"

int main()
{
    std::cout << "plain: " << std::endl;
    std::string message = "seek truth from facts"; // 待加密的信息
    std::cout << message << std::endl;
    ly::Sha256 sha256; // 初始化Sha256对象
    std::cout << "cipher: " << std::endl;
    std::string message_digest = sha256.getHexMessageDigest(message); // 加密
    std::cout << message_digest << std::endl; // 输出加密结果
    getchar();
    return 0;
}
